package com.taiyuan.zfmvp.starterTest;

import com.taiyuan.zfmvp.ThreadPoolOperateData.service.AsyncService;
import com.taiyuan.zfmvp.sharding.service.TestShardingService;
import com.zf.starter.HelloService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;
import java.util.concurrent.CountDownLatch;

/**
 * @param
 * @Author: zhoufang@si-tech.com.cn
 * @Descriiption:
 * @Date 2022/1/30
 * @return
 */
@Controller
@RequestMapping("/testStarter")
public class TestStarterController {
    private static final Logger logger = LoggerFactory.getLogger(TestStarterController.class.getName());
    @Resource
    private HelloService helloService;




    @PostMapping("/sayHello")
    @ResponseBody
    public String sayHello(@RequestBody Map<String, Object> inMap) {



        return helloService.sayHello("你好");
    }



}
